<?php
/// check session authenticate
if(! $this->session->userdata('logged_in')){
 
	redirect(base_url().'/index.php/login/', 'refresh');
}
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ระบบประกันคุณภาพการผลิต :: QI Management</title>
<script src="<?php echo base_url();?>js/knockout-1.2.1.js"></script> 
 

<script src="<?php echo base_url();?>js/jquery-1.7.1.min.js"></script>
<script src="<?php echo base_url();?>js/kendo.dataviz.min.js"></script>
<script src="<?php echo base_url();?>js/kendo.all.min.js"></script>

<link href="<?php echo base_url();?>css/kendo.common.min.css" rel="stylesheet" />
<link href="<?php echo base_url();?>css/kendo.default.min.css" rel="stylesheet" />
<!-- <link href="<?php echo base_url();?>css/t-tech.css" rel="stylesheet" /> -->
<link href="<?php echo base_url();?>css/t-tech-style.css" rel="stylesheet" />
</head>

 
<body>
 
<table width="100%" align="center" class="font">
  <tr>
  <td height="100" bgcolor="#FFFFFF" align=left width=80% >
       <h2>ระบบประกันคุณภาพการผลิต</h2>
    </td>
    <td height="100" bgcolor="#FFFFFF" align=left >
    <div   >
 <label for="input"  >ผู้ใช้ระบบ :</label> <?=$this->session->userdata('fullname')?><br>
   <label for="input" >เวลาเข้าใช้ระบบ :</label>  <?=$this->session->userdata('login_time')?><br>
  <label for="input"  >ตำแหน่ง :</label> <?=$this->session->userdata('position')?><br>
 <label for="input"  >หน่วยงาน :</label>   <?=$this->session->userdata('department')?><br>
  <label for="input"  >โรงงาน :</label> <?=$this->session->userdata('factory')?><br>
 
    </div>
    </td>
  </tr>
  <tr>
    <td colspan=2><div class=demo-section>
        <div id=menu-images></div>
      </div>
<script>
$("#menu-images").kendoMenu({
				dataSource: [
								{
							text: "หน้าแรก",url:"<?php echo base_url()?>index.php/application/index"
								},
								{
							text: "บันทึกข้อมูล",items:[ 
											{text:"MasterReel",url:"<?php echo base_url()?>index.php/application/MasterReel"},
											{text:"Cut size",url:"<?php echo base_url()?>index.php/application/CutSize"},
											{text:"Folio Sheet",url:"<?php echo base_url()?>index.php/application/FolioSheet"},
											{text:"Final Check",url:"<?php echo base_url()?>index.php/application/FinalCheck"},
											{text:"Raw Material Inspection Report (Pulp Strength)",url:"<?php echo base_url()?>index.php/application/PulpStrength"},
											{text:"Raw Material Inspection Report (Incoming)",url:"<?php echo base_url()?>index.php/application/Incoming"},
											{text:"Raw Material Inspection Report (Starch)",url:"<?php echo base_url()?>index.php/application/Starch"},
											{text:"Raw Material Inspection Report (Chemical Inprocess)",url:"<?php echo base_url()?>index.php/application/ChemicalInprocess"},
											{text:"Raw Material Inspection Report (Pulp Inprocess)",url:"<?php echo base_url()?>index.php/application/PulpInprocess"},
											{text:"Raw Material Inspection Report (Pulp Evaluation )",url:"<?php echo base_url()?>index.php/application/PulpEvaluation "},
	                               		] 
                        	  
                        } ,


                        <? if($this->session->userdata('admin')) { ?>     
                        {
                      	   text: "ปรับปรุงข้อมูลตั้งต้น" ,
                      	   items:[ 
 									{text:"รายละเอียดข้อมูลตั้งต้น",url:"<?php echo base_url()?>/index.php/application/viewAllDataType",},
 									{text:"MasterReel",url:"<?php echo base_url()?>index.php/application/MasterReel_Setting",},
 									{text:"Cut size",url:"<?php echo base_url()?>index.php/application/CutSize_Setting"},
 									{text:"Folio Sheet",url:"<?php echo base_url()?>index.php/application/FolioSheet_setting"},
 									{text:"Final Check",url:"<?php echo base_url()?>index.php/application/FinalCheck_setting"},
 									{text:"Raw Material Inspection Report (Pulp Strength)",url:"<?php echo base_url()?>index.php/application/PulpStrength_Setting"},
 									{text:"Raw Material Inspection Report (Incoming)",url:"<?php echo base_url()?>index.php/application/Incoming_Setting"},
 									{text:"Raw Material Inspection Report (Starch)",url:"<?php echo base_url()?>index.php/application/Starch_Setting"},
                      	            {text:"Raw Material Inspection Report (Chemical Inprocess)",url:"<?php echo base_url()?>/index.php/application/ChemicalInprocess_setting"},
                      	            {text:"Raw Material Inspection Report (Pulp Inprocess)",url:"<?php echo base_url()?>/index.php/application/PulpInprocess_setting "},
                      	            {text:"Raw Material Inspection Report (Pulp Evaluation )",url:"<?php echo base_url()?>/index.php/application/PulpEvaluation_setting "},
                             		] 
                      	  		} ,

                      	 
                        
                     {
                   	   text: "ปรับแต่งระบบ" ,
                   	   items:[
                   	         
                     	  	   {
                     	  		 text: "ผู้ใช้งานระบบ" ,
                             	   items:[ {text:"ผู้ใช้งานระบบ",url:"<?php echo base_url()?>/index.php/user/manageUser"},
                             	           {text:"Position",url:"<?php echo base_url()?>/index.php/user/position"},
                             	           {text:"Department",url:"<?php echo base_url()?>/index.php/user/department"},
                             	           {text:"User Permission",url:"<?php echo base_url()?>/index.php/user/permission"},
                             	          ] 
                     	  	   }, 
                     	  	 {
                       	  		 text: "กำหนดราคาในการอนุมัติ" ,
                               	   items:[ {text:"กำหนดราคา",url:"<?php echo base_url()?>/index.php/report/report1"},
                               	           {text:"Position",url:"<?php echo base_url()?>/index.php/report/report2"},                               	         
                               	          ] 
                       	  	   }, 
                   	          
                   	           {text:"ผู้ดูแลระบบ",url:"<?php echo base_url()?>/index.php/application/FolioSheet"},
                   	          ] 
                   	  
                   } , 
                   <? }  ///  Filter for admin?>
                   {
                   	   text: "ระบบรายงาน" ,
                   	   items:[ {text:"รายงาน1",url:"<?php echo base_url()?>/index.php/report/report1"},
                   	           {text:"รายงาน2",url:"<?php echo base_url()?>/index.php/report/report2"},
                   	           {text:"รายงาน3",url:"<?php echo base_url()?>/index.php/report/report3"},
                   	          ] 
                   	  
                   }  ,{
                   	   text: "ออกจากระบบ" ,url:"<?php echo base_url()?>/index.php/login/logout"
                   	    
                   	  
                   }                                
                    ]
                });
            </script>
      <style scoped>
                .demo-section {
                	width: 100%;
                }
                .demo-section h1 {
                	font-weight: normal;
                	padding-bottom: 10px;
                }
                 
                .brazilFlag {
                	background-position: 0 0;
                }
                .indiaFlag {
                	background-position: 0 -32px;
                }
                .netherlandsFlag {
                	background-position: 0 -64px;
                }
                .historyIcon {
                	background-position: 0 -96px;
                }
                .geographyIcon {
                	background-position: 0 -128px;
                }
                .k-numeric-wrap {
                   max-width: 3em;
                   
                }

                 
            
            </style>
    </td>
  </tr>
</table>
